//
//  Prefix(MenuViewStyle).m
//  DuTe
//
//  Created by Gikki Ares on 2020/12/9.
//

#import "JsMenuViewStyle.h"

@implementation Prefix(MenuViewStyle)

- (instancetype)init {
	if(self = [super init]) {
		self.maskViewColor = [UIColor colorWithWhite:0.5 alpha:0.3];
	}
	return self;
}

+ (Prefix(MenuViewStyle) *)defaultStyle {
	Prefix(MenuViewStyle) * menuViewStyle = [Prefix(MenuViewStyle) new];
	
	//默认的背景色是透明
	menuViewStyle.collectionViewBackgroundColor =[UIColor clearColor];
	menuViewStyle.edgeInset = UIEdgeInsetsMake(5, 5,5, 5);
	menuViewStyle.minimumLineSpacing = 10;
	menuViewStyle.minimumInteritemSpacing = 10;
	menuViewStyle.initialSelectedIndex = -1;
	menuViewStyle.scrollDirection = UICollectionViewScrollDirectionVertical;
	return menuViewStyle;
}

+ (Prefix(MenuViewStyle) *)darkModeStyle {
	Prefix(MenuViewStyle) * menuViewStyle = [Prefix(MenuViewStyle) new];
	
		//默认的背景色是透明
	menuViewStyle.collectionViewBackgroundColor =[UIColor grayColor];
	menuViewStyle.edgeInset = UIEdgeInsetsMake(5, 5,5, 5);
	menuViewStyle.minimumLineSpacing = 10;
	menuViewStyle.minimumInteritemSpacing = 10;
	menuViewStyle.initialSelectedIndex = -1;
	menuViewStyle.scrollDirection = UICollectionViewScrollDirectionVertical;
	return menuViewStyle;
}

@end
